package com.liunian.subject.domain.entity;

import com.liunian.subject.infra.basic.entity.SubjectLabel;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "题目类别BO")
public class SubjectLabelBO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 标签名
     */
    private String labelName;
    /**
     * 排序顺序
     */
    private Long sortNum;

    private Long categoryId;

    public SubjectLabel subjectLabelBOToEntity() {
        SubjectLabel subjectLabel = new SubjectLabel();
        subjectLabel.setId(this.id);
        subjectLabel.setLabelName(this.labelName);
        subjectLabel.setSortNum(this.sortNum);
        return subjectLabel;
    }

}
